#!/bin/bash
copyFile() {
    cd $1
    for file in `ls`
    do
        newfile="$1_$file"
        cp $file "../$2/$newfile"
    done
    cd ..
}

mkdir summaryRules
newFolder="summaryRules"
copyFile "gucaoRules" "$newFolder"
copyFile "alicianRules" "$newFolder"
copyFile "cbjRules" "$newFolder"